<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{

   protected function _initAppAutoload()
   {
 		$moduleLoader = new Zend_Application_Module_Autoloader(array(
			'namespace' => '',
			'basePath' => APPLICATION_PATH));
   }
	
	protected function _initDoctrine()
	{
		echo "Bootstrap initialized";
		$this->getApplication()->getAutoloader()
	         ->pushAutoloader(array('Doctrine', 'autoload'));
	    spl_autoload_register(array('Doctrine', 'modelsAutoload'));
	    $manager = Doctrine_Manager::getInstance();
	    $dsn = $this->getOption('dsn');
	    print $dsn;
//	    $conn = $manager->connection('mysql://root:@localhost/tours', 'doctrine');
	    $conn = $manager->connection('mysql://wis_developer:vub_wis@91.121.56.68/tours', 'doctrine');
	   //return $conn;
	 }
}

